Skip to content

[3.5] *: LeaseTimeToLive returns error if leader changed#17704

Merged
ahrtr merged 2 commits into
etcd-io:release-3.5from
fuweid:35-cp-17462
Apr 5, 2024
Merged

[3.5] *: LeaseTimeToLive returns error if leader changed#17704
ahrtr merged 2 commits into
etcd-io:release-3.5from
fuweid:35-cp-17462

Conversation

@fuweid

@fuweid fuweid commented Apr 4, 2024

Copy link
Copy Markdown
Member

@k8s-ci-robot

Copy link
Copy Markdown

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

@fuweid

fuweid commented Apr 4, 2024

Copy link
Copy Markdown
Member Author

hold it until bump go version

@ahrtr

ahrtr commented Apr 4, 2024

Copy link
Copy Markdown
Member

Please rebase this PR, the go version has already been bumped.

fuweid added 2 commits April 4, 2024 22:33
And introduce helper to toggle failpoints by makefile.

Signed-off-by: Wei Fu <fuweid89@gmail.com>
The old leader demotes lessor and all the leases' expire time will be
updated. Instead of returning incorrect remaining TTL, we should return
errors to force client retry.

Cherry-pick: d3bb6f6

Signed-off-by: Wei Fu <fuweid89@gmail.com>

@ahrtr ahrtr left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Thanks

@ahrtr

ahrtr commented Apr 4, 2024

Copy link
Copy Markdown
Member

Link to #17506

@ahrtr ahrtr merged commit 86d9874 into etcd-io:release-3.5 Apr 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

4 participants